package cn.lijiguo.concurrency.part1.ch02;

/**
 * CalculatorStrategy
 *
 * @author lijiguo
 * @date 2019/12/6 15:54
 */
@FunctionalInterface
public interface CalculatorStrategy {

    /**
     * 计算个人所得税的方式
     * @param salary 工资
     * @param bonus 奖金
     * @return 应该缴纳的个人所得税
     */
    double calculate(double salary, double bonus);
}
